    <!doctype html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>后台管理</title>
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/common.css"/>
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/main.css"/>
        <script type="text/javascript" src="__PUBLIC__/static/admin/js/libs/modernizr.min.js"></script>
        <script type="text/javascript" src="__PUBLIC__/static/admin/ueditor/ueditor.config.js"></script>
        <script type="text/javascript" src="__PUBLIC__/static/admin/ueditor/ueditor.all.min.js"></script>
        <script type="text/javascript" src="__PUBLIC__/static/admin/ueditor/lang/zh-cn/zh-cn.js"></script>
    </head>
    <body>
    {include file="Public/top" /}
    <div class="container clearfix">
        {include file="Public/left" /}
        <!--/sidebar-->
        <div class="main-wrap">

            <div class="crumb-wrap">
                <div class="crumb-list"><i class="icon-font"></i><a href="{:url('admin/index/index')}">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="{:url('admin/article/lst')}">问卷管理</a><span class="crumb-step">&gt;</span><span>新增问卷模板</span></div>
            </div>
            <div class="result-wrap">
                <div class="result-content">
                    <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data">
                        <table class="insert-tab" width="100%">
                            <tbody>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>问卷标题：</th>
                                    <td>
                                        <input class="common-text required" id="title" name="title" size="50" value="" type="text">
                                    </td>
                                </tr>
                                <!-- <tr>
                                    <th>关键词：</th>
                                    <td><input class="common-text" name="keywords" size="50" value="" type="text"></td>
                                </tr> -->
                                <tr>
                                    <th>问卷描述：</th>
                                    <td><textarea name="desc" class="common-textarea" id="desc" cols="20" style="width: 50%;" rows="5"></textarea></td>
                                </tr>
                                <tr id="p2">
                                    <th>问题：</th>
                                    <td>
                                     <p>问题标题：</p>
                                    <input class="common-text required" id="title" name="title" size="50" value="" type="text">
                                    <p>问题类型：○单选题  ○多选题</p>
                                    <p>选项：
                                    <input class="common-text required" id="title" name="title" size="50" value="" type="text"></p>
                                     
                               
    <p id="p1"></p>
<a href="#"><p  onclick="changetext(this)">＋增加一个选项</p></a>
    <script>
    function changetext(id)
{
 // id.innerHTML="谢谢!";
txt2= document.getElementById("p1").innerHTML ;
document.getElementById("p1").innerHTML=txt2 + "<p>选项：<input   size='50' value='' type='text'> </p>";
}
       function changetext2(id)
{
 // id.innerHTML="谢谢!";
txt2= document.getElementById("p2").innerHTML ;
document.getElementById("p3").innerHTML=txt2 +"txt2";
} 
    </script>
                                     </td>
                                </tr>
                                <span id="p3"></span>
                                <tr><th><a href="#"><p  onclick="changetext2(this)">＋增加一个问题</p></a></th><td></td></tr>
                                <!-- <tr>
                                    <th>所属栏目：</th>
                                    <td>
                                        <select name="cateid">
                                            {volist name="cateres" id="vo"}
                                                <option value="{$vo.id}">{$vo.catename}</option>
                                            {/volist}
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <th>缩略图：</th>
                                    <td><input type="file" name="pic" /></td>
                                </tr>
                                <tr>
                                    <th>内容：</th>
                                    <td><textarea name="content" class="common-textarea" id="content" cols="30" style="width: 98%;" rows="10"></textarea></td>
                                </tr> -->
                                <tr>
                                    <th></th>
                                    <td>
                                        <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                        <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                    </td>
                                </tr>
                            </tbody></table>
                    </form>
                </div>
            </div>

        </div>
        <!--/main-->
    </div>
    <script type="text/javascript">

        //实例化编辑器
        //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
        UE.getEditor('content',{initialFrameWidth:1500,initialFrameHeight:400,});
        


    </script>
    </body>
    </html>
